import request from "@/config/utils/request";
import { addUrlPerFix } from "@/basa/utils";
export function getAuthMenu(data) {
  return request({
    url: "apis/smp/app/getAuthMenu",
    method: "post",
    data
  });
}

export function getDetail(data) {
  return request({
    url: addUrlPerFix(process.env.VUE_APP_BASEP_URL) + "/apis/basap/getDetail",
    method: "post",
    data
  });
}

export function getLogin(data) {
  return request({
    url:
      addUrlPerFix(process.env.VUE_APP_BASEP_URL) +
      "/apis/basap/users/signup/getLogin",
    method: "post",
    data
  });
}

export function getAppToken(data) {
  return request({
    url: "/apis/smp/oauth2/codeRedirect",
    method: "post",
    data
  });
}
